<?php
/**
 * Site entry point
 *
 * It is not a good idea to render exceptions like done below in production
 * servers. You should log the exceptions and/or present a generic error page,
 * preferably through the ErrorController.
 *
 * @author    Mon Zafra <monzee at gmail>
 * @copyright (c)2009 Mon Zafra
 * @license   http://monzee.wordpress.com/license New BSD
 * @version   $Id: index.php 38 2009-02-18 17:12:39Z monzee $
 */

require '../bootstrap.php';

try {
    run();
} catch (Exception $e) {
    require_once 'Mz/Exception.php';
    Mz_Exception::render($e, path_to('exception.phtml'), front()->getBaseUrl());
}
